<?php
require_once('IControleBanner.php');
require_once($_SERVER["DOCUMENT_ROOT"] . '/Esquina_da_TI/DAO/RepositorioPropaganda.php');

class ControleBanner implements IControleBanner{

    private $repositorioPropaganda = null;

    function __construct() {
        $this->repositorioPropaganda = new RepositorioPropaganda();
    }


    public function cadastrarBanner($banner){
        return $this->repositorioPropaganda->cadastrarBanner($banner);
    }

    public function localizarBanner($codigo,$cliente){
        return $this->repositorioPropaganda->localizarBanner($codigo, $cliente);
    }

    public function atualizarBanner($banner){
        return $this->repositorioPropaganda->atualizarBanner($banner);
    }

    public function removerBanner($codigo){
        return $this->repositorioPropaganda->removerBanner($codigo);
    }

    public function mostrarBanner(){
        return $this->repositorioPropaganda->mostrarBanner();
    }




}
?>

